﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Flower_5
{
    class LogicFlowers
    {    
        public double CalculationPrice(Boquet Buket)
        {
            double price = 0;
            for (int i = 0; i < Buket.FlowerInBuket().Count(); i++) price += (double)Buket.FlowerInBuket()[i].price();
            return price;
        }

        public void AddGerbera(Boquet Buket, int mid, string color)
        {
            Buket.FlowerInBuket().Add(new Gerbera(mid, "O_o", 14, 100, color));     
        }

        public void AddRose(Boquet Buket, int bud, string color)
        {
            Buket.FlowerInBuket().Add(new FormRoses(bud, 14, 200, color));
        }
    }
}
